//
//  HMTextView.swift
//  HMWeiBo
//
//  Created by Apple on 16/8/6.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit

class HMTextView: UITextView {

    var holdString: NSString?
    // Only override drawRect: if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {
        // Drawing code
        
        // 对font进行了强制解包,就一定要给textView设置font
        
        holdString?.drawAtPoint(CGPointMake(5, 8), withAttributes: [NSFontAttributeName: font!])
        
    }
   

}
